import request from '@/utils/request'

// 查询消息列表
export function listMessage(query) {
    return request({
      url: '/sale/agency/list',
      method: 'get',
      params: query
    })
}

// 查询消息列表
export function totalMessage(query) {
  return request({
    url: '/sale/agency/list',
    method: 'get',
    params: query
  })
}



// 查询消息数量
export function indexMessage(query) {
  return request({
    url: '/sale/agency/agencyCount',
    method: 'get',
    params: query
  })
}

// 消息详情
export function editMessage(data) {
  return request({
    url: '/sale/agency/edit',
    method: 'post',
    data: data
  })
}